<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>draw (Engine::MenuState)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File engine/menu_state.rb, line 24</span>
    <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">draw</span>
      <span class="ruby-ivar">@img_background</span>.<span class="ruby-identifier">draw</span>(<span class="ruby-value">0</span>, <span class="ruby-value">0</span>, <span class="ruby-value">0</span>)
      <span class="ruby-ivar">@img_logo</span>.<span class="ruby-identifier">draw_rot</span>(<span class="ruby-constant">Game</span><span class="ruby-operator">::</span><span class="ruby-constant">ScreenWidth</span> <span class="ruby-operator">/</span> <span class="ruby-value">2</span>, <span class="ruby-value">120</span>, <span class="ruby-constant">ZOrder</span><span class="ruby-operator">::</span><span class="ruby-constant">Hud</span>, <span class="ruby-value">0</span>)
      
      <span class="ruby-ivar">@options</span>.<span class="ruby-identifier">size</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
        <span class="ruby-identifier">color</span> = <span class="ruby-identifier">option_selected?</span>(<span class="ruby-identifier">i</span>) <span class="ruby-operator">?</span> <span class="ruby-value">0xfff4cc00</span> <span class="ruby-operator">:</span> <span class="ruby-value">0xffffffff</span>
        <span class="ruby-ivar">@font</span>.<span class="ruby-identifier">draw_rel</span>(<span class="ruby-ivar">@options</span>[<span class="ruby-identifier">i</span>], <span class="ruby-constant">TextX</span>, <span class="ruby-constant">TextY</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">i</span> <span class="ruby-operator">*</span> <span class="ruby-constant">TextGap</span>, <span class="ruby-constant">ZOrder</span><span class="ruby-operator">::</span><span class="ruby-constant">Hud</span>, <span class="ruby-value">0</span><span class="ruby-value">.5</span>, <span class="ruby-value">0</span><span class="ruby-value">.5</span>, <span class="ruby-value">1</span>, <span class="ruby-value">1</span>, <span class="ruby-identifier">color</span>)
      <span class="ruby-keyword kw">end</span>
    <span class="ruby-keyword kw">end</span></pre>
</body>
</html>